#ifndef CARRIAGEVALUE_H
#define CARRIAGEVALUE_H

#include <map>

typedef std::pair<int, int>  IntPair;


class CarriageValue
{
public:
    static const int    MAX_PEOPLE_COUNT = 20;

    enum Status
    {
        kEmpty = 1,
        kFull,
        kCrowd,
        kVeryCrowd
    };

public:
    CarriageValue();

    int exception;
    IntPair empty;
    IntPair full;
    IntPair crowd;
    IntPair veryCrowd;

    bool load(const char* filepath);

    void reset();

    Status getStatus(int count);

};

#endif // CARRIAGEVALUE_H
